﻿<Window x:Class="Nomad.WebSync.Windows.mainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Nomad WebSync" 
    Height="678" Width="437" 
    AllowsTransparency="True" 
    WindowStyle="None" 
    ResizeMode="NoResize" 
    WindowStartupLocation="CenterScreen"     
    Icon="/Nomad.WebSync.Windows;component/WebSync.ico" 
    FontSize="16"
    MouseMove="Window_MouseMove"
    MouseLeftButtonDown="Window_MouseLeftButtonDown"
    Initialized="Window_Initialized">
    <Window.Background>
        <ImageBrush ImageSource="/Nomad.WebSync.Windows;component/Resources/Skin.png"/>
    </Window.Background>

    <Border Name="windowBorder" BorderThickness="3" BorderBrush="Black" HorizontalAlignment="Left" VerticalAlignment="Top" Width="360" Height="480" Margin="38,64,0,0">
        <Border.Background>
            <ImageBrush ImageSource="/Nomad.WebSync.Windows;component/Resources/Background.jpg"/>
        </Border.Background>

        <DockPanel>
            <Grid DockPanel.Dock="Top" Height="24" Background="Black" VerticalAlignment="Top">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="20" />
                    <ColumnDefinition />
                    <ColumnDefinition Width="24"/>
                </Grid.ColumnDefinitions>
                <Grid.BitmapEffect>
                    <DropShadowBitmapEffect ShadowDepth="2" />
                </Grid.BitmapEffect>
                <Image Grid.Column="0" Name="startMenuIcon" Source="/Nomad.WebSync.Windows;component/WebSync.ico" Height="20" Margin="2" MouseLeftButtonUp="startMenuIcon_MouseLeftButtonUp" Cursor="Hand" IsHitTestVisible="False">
                    <Image.ContextMenu>
                        <ContextMenu Background="Black" BorderBrush="Black" Foreground="White" VerticalContentAlignment="Top" Placement="Absolute" FontSize="16">
                            <MenuItem Header="Calendar" Click="startCalendarMenuItem_Click" Foreground="White"/>
                            <MenuItem Header="Contacts" Click="startContactsMenuItem_Click" Foreground="White"/>
                            <MenuItem Header="Notes" Click="startNotesMenuItem_Click" Foreground="White"/>
                            <MenuItem Header="Tasks" Click="startTasksMenuItem_Click" Foreground="White"/>
                            <Separator/>
                            <MenuItem Header="System" Foreground="White">
                                <MenuItem Header="New Account" Click="systemNewAccountMenuItem_Click"/>
                                <MenuItem Header="Settings" Click="systemSettingsMenuItem_Click"/>
                            </MenuItem>
                        </ContextMenu>
                    </Image.ContextMenu>
                </Image>
                <TextBlock Grid.Column="1" Name="startMenuLabel" Text="Nomad WebSync" Foreground="White" Margin="5,1" HorizontalAlignment="Left" MouseLeftButtonDown="startMenuIcon_MouseLeftButtonUp" Cursor="Hand" />
                <Button Grid.Column="2" Name="closeButton" Content="X" FontSize="12" Background="Black" Foreground="White" Click="closeButton_Click"/>
            </Grid>

            <Frame DockPanel.Dock="Top" Name="mainFrame" NavigationUIVisibility="Hidden" Navigated="mainFrame_Navigated" />

            <Menu DockPanel.Dock="Bottom" Height="30" VerticalAlignment="Bottom" FontSize="16" Padding="2">
                <MenuItem Name="mainNewMenuItem" Header="New">
                    <MenuItem Header="Appointment" Click="newAppointmentMenuItem_Click"/>
                    <MenuItem Header="Contact" Click="newContactMenuItem_Click"/>
                    <MenuItem Header="Note" Click="newNoteMenuItem_Click"/>
                    <MenuItem Header="Task" Click="newTaskMenuItem_Click"/>
                </MenuItem>
                <MenuItem Name="mainSystemMenuItem" Header="System">
                    <MenuItem Header="New Account" Click="systemNewAccountMenuItem_Click"/>
                    <MenuItem Header="Settings" Click="systemSettingsMenuItem_Click"/>
                </MenuItem>
                <MenuItem Name="contactsToolsMenuItem" Header="Tools">
                    <MenuItem Header="Edit Contact"/>
                    <MenuItem Header="Remove Contact"/>
                    <Separator/>
                    <MenuItem Header="Send (Account)"/>
                </MenuItem>
            </Menu>
        </DockPanel>
    </Border>
</Window>
